InterstitialAdLoader

class InterstitialAdLoader constructor(context: Context)

Full-screen interstitial ads.

Parameters

context

The context through which can be accessible the current theme, resources, etc. In particular, it uses the window manager and theme in this context to present its UI.

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard

Cancel active loading of the interstitial ads.

Link copied to clipboard
suspend fun loadAd(adRequest: AdRequest): <Error class: unknown class>

Starts loading the ad on a background thread. Suspends until the result is available.

fun loadAd(adRequest: AdRequest, listener: InterstitialAdLoadListener)

Starts loading the ad on a background thread.

suspend fun loadAd(adUnitId: String, readyResponse: String): <Error class: unknown class>

Starts loading the ad on a background thread with ready response. Suspends until the result is available.

fun loadAd(adUnitId: String, readyResponse: String, listener: InterstitialAdLoadListener)

Starts loading the ad on a background thread with ready response.